<?php
use yii\grid\GridView;

/* @var $dataProvider yii\data\ActiveDataProvider */
?>
<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        ['class' => \yii\grid\CheckboxColumn::className(), 'cssClass' => 'art_id', 'header' => ''],
        'id',
        'title',
        'created_at:datetime'
    ]
]); ?>
<?php
$script = <<<JS
    $(".pagination li a,.table thead a").on("click",function(){
        var url = $(this).attr('href');
        $.get(url,function(result) {
            $("#articleBody").html(result);
        })
        return false;
    });
    $(".art_id").on("click",function() {
        $(".art_id").not(this).prop("checked",false)
    });
JS;
$this->registerJs($script);
?>